Interesting primary function, it was fun to reverse engineer it.